package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class BetweenPredicate implements Predicate {

    private int beginIndex;
    private int endIndex;
    private RowValuePredicand rowValuePredicand;
    private BetweenPredicatePart2 betweenPredicatePart2;

    public BetweenPredicate(RowValuePredicand rowValuePredicand, BetweenPredicatePart2 betweenPredicatePart2) {
        this.beginIndex = rowValuePredicand.getBeginIndex();
        this.endIndex = betweenPredicatePart2.getEndIndex();
        this.rowValuePredicand = rowValuePredicand;
        this.betweenPredicatePart2 = betweenPredicatePart2;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public RowValuePredicand getRowValuePredicand() {
        return rowValuePredicand;
    }

    public BetweenPredicatePart2 getBetweenPredicatePart2() {
        return betweenPredicatePart2;
    }

}
